package com.ocom.common.vo.payconfig;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class GrantCouponsVo {
        @NotNull(message = "单位编号不能为空")
        private Long comId;
        @NotNull(message = "订单号不能为空")
        private String orderNo;
        private int voucherTypeId;

        @NotNull(message = "开始日期不能为空")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @JsonProperty(value = "startDate")
        private String startDate;

        @NotNull(message = "结束日期不能为空")
        @JsonProperty(value = "stopDate")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private String stopDate;

        @NotNull(message = "批次编号不能为空")
        private int itemId;

        private String createUser;
}
